let h6Elements = document.getElementsByTagName("h6");
// 给每个h6元素添加鼠标移入和移出事件
for (let i = 0; i < h6Elements.length; i++) {
  h6Elements[i].addEventListener("mouseover", function () {
    this.style.color = "orange"; // 改变文字颜色为橙色
    this.style.cursor = "pointer";
    this.classList.add("underline"); // 添加样式类名
  });

  h6Elements[i].addEventListener("mouseout", function () {
    this.style.color = ""; // 恢复默认文字颜色
    this.classList.remove("underline"); // 移除样式类名
  });
}
const ar = document.querySelector('.box3 .ar');
ar.addEventListener('click', function () {
  document.getElementById("overlay").style.display = "block";
})
const close = document.querySelector('.dia-close');
const overlay = document.querySelector('#overlay')
close.addEventListener('click', function () {
  overlay.style.display = 'none';
})